package com.clpms.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author caixinyong
 * @date 2023/5/5 8:05 PM
 */

@Controller
public class PageController {

	@RequestMapping("/")
	public String index() {
		return "/index";
	}

	@RequestMapping("/page/{pageName}")
	public String showPage(@PathVariable String pageName) {
		return "/page/" + pageName;
	}
}
